<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>客服人员信息列表</title>

	<link rel="stylesheet" href="/myresource/css/index2.css" type="text/css"/>
<script type="text/javascript" src="/webjars/jquery/3.2.1/dist/jquery.min.js"></script>
 <script type="text/javascript" src="/resources/My97DatePicker/WdatePicker.js"></script>

</head>
<script type="text/javascript">
    function deleteUser(id) {
		location.href="/deleteUser?id="+id;
	}

	function toUpdateUser(id) {
		location.href="/toUpdateUser/"+id;
	}

	function toAddUser() {
		location.href="/toAddUser";
	}
</script>
<body>
	
	<div class="container">

	</div>
	<table>
		 <thead>
		<tr>
			<td>编号</td>
			<td>姓名</td>
			<td>密码</td>
			<td>年龄</td>
			<td>邮箱</td>
			<td>日期</td>
			<td>
				操作
			<input  type="button" th:onclick="'javascript:toAddUser()'" value="添加" />
			</td>
		</tr>
		</thead>
		 <tbody>
				<tr th:each="u :${list}"  >
					<td th:text="${u.id}">
					</td>
					<td th:text="${u.uname}">
					</td>
					<td th:text="${u.pwd}">
					</td>
					<td th:text="${u.age}">
					</td>
					<td th:text="${u.email}">
					</td>
					<td th:text="${u.createTime}">
					</td>
					<td>
						<input  type="button" th:onclick="'javascript:deleteUser('+${u.id}+')'" value="删除" />
						<input  type="button" th:onclick="'javascript:toUpdateUser('+${u.id}+')'" value="修改" />
					</td>
				</tr>
		</tbody>		
	</table>
</body>
</html>